<?php

/**
 * Categories form.
 *
 * @package    form
 * @subpackage categories
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class CategoriesForm extends BaseCategoriesForm
{
	public function configure()
	{
		unset($this['created_at']);
		unset($this['updated_at']);
		unset($this['deleted_at']);
		
		$this->validatorSchema['parent_id'] = new sfValidatorInteger(array('min' => 1, 'required' => false), array( 'min' => '1 minimum'));
		$this->validatorSchema['sort_order'] = new sfValidatorInteger(array('min' => 1), array( 'min' => '1 minimum'));
		  $this->widgetSchema['categories_image'] = new sfWidgetFormInputFile();
  $this->validatorSchema['categories_image'] = new sfValidatorFile();  
		$this->validatorSchema['date_added'] = new sfValidatorDate(array('required' => false));
		
		$this->embedI18n(LanguagesPeer::getCodesInArray());
	}
}
